gtkscale: Properly initialize the clip
authorTimm Bäder <mail@baedert.org>
Fri, 5 May 2017 11:19:05 +0000 (13:19 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
gtk/gtkscale.c

index b760356009901bb301bc5f61864371b3cefa6bad..bde4a8bbb4093334d4fb114698f835115b5ef6e3 100644 (file)
@@ -598,12 +598,12 @@ gtk_scale_size_allocate (GtkWidget     *widget,
 {
   GtkScale *scale = GTK_SCALE (widget);
   GtkScalePrivate *priv = scale->priv;
-  GtkAllocation clip, marks_clip, range_rect, marks_rect;
+  GtkAllocation clip = *allocation;
+  GtkAllocation marks_clip, range_rect, marks_rect;
   GtkOrientation orientation;
 
   GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_allocate (widget, allocation);
 
-  gtk_widget_get_clip (widget, &clip);
   orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
   gtk_range_get_range_rect (GTK_RANGE (scale), &range_rect);